package cn.edu.scau.cmi.dengzejun.chapter08;

public class Goods {
	boolean isDanger;
	String name;
	Goods(String name){
		this.name=name;
		return;
	}
	
	public void setIsDanger(boolean flag) {
		isDanger=flag;
		return;
	}
	
	public boolean isDanger() {
		return isDanger;
	}
	
	public String getName() {
		return name;
	}
	
	
}
